package com.topc.participant.service;

import com.topc.participant.model.dto.SaveAdminDto;
import com.topc.participant.model.dto.UpdatePasswordDto;
import com.topc.participant.model.po.AdminInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.topc.participant.model.vo.AdminDetailVo;
import com.topc.participant.model.vo.AdminProjectDynamicVo;
import com.topc.participant.model.vo.AdminShowVo;

import java.util.List;

/**
 * <p>
 * 管理员信息表 服务类
 * </p>
 *
 * @author itcast
 * @since 2024-01-25
 */
public interface IAdminInfoService extends IService<AdminInfo> {

    void logout(String number);

    AdminDetailVo getAdminInfoByNumber(String number);

    String setAdminAvatar(String newPath, String number);

    void updatePassword(UpdatePasswordDto passwordDto,String number);

    List<AdminShowVo> showAdminTeam();

    List<AdminProjectDynamicVo> getProjectDynamic();

    Boolean isHasRoleInAdmin(Long roleId);

    Long saveAdminInfo(SaveAdminDto saveAdminDto);

    void updateAdminInfo(SaveAdminDto saveAdminDto);
}
